/*
 * Copyright (C) 2017-2021
 * All rights reserved, Designed By
 * Copyright authorization contact 18814114118
 */
package com.shop.cereshop.commons.domain.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 代理商订单商品明细表
 */
@Data
@TableName("cere_agent_order_product")
@ApiModel(value = "CereAgentOrderProduct", description = "代理商订单商品明细表")
public class CereAgentOrderProduct implements Serializable {

  /**
   * 订单商品明细id
   */
  @TableId(value = "order_product_id", type = IdType.AUTO)
  @ApiModelProperty(value = "订单商品明细id")
  private Long orderProductId;

  /**
   * 关联订单id
   */
  @TableField("order_id")
  @ApiModelProperty(value = "订单id")
  private Long orderId;

  /**
   * 关联商品id
   */
  @TableField("product_id")
  @ApiModelProperty(value = "商品id")
  private Long productId;

  /**
   * 关联规格id
   */
  @TableField("sku_id")
  @ApiModelProperty(value = "规格id")
  private Long skuId;

  /**
   * 商品名称
   */
  @TableField("product_name")
  @ApiModelProperty(value = "商品名称")
  private String productName;

  /**
   * 购买数量
   */
  @TableField("number")
  @ApiModelProperty(value = "购买数量")
  private Integer number;

  /**
   * 商品售价
   */
  @TableField("product_price")
  @ApiModelProperty(value = "商品售价")
  private BigDecimal productPrice;

  /**
   * 图片地址
   */
  @TableField("image")
  @ApiModelProperty(value = "图片地址")
  private String image;

  /**
   * SKU
   */
  @TableField("SKU")
  @ApiModelProperty(value = "SKU")
  private String sku;

  /**
   * 重量
   */
  @TableField("weight")
  @ApiModelProperty(value = "重量")
  private BigDecimal weight;

  private static final long serialVersionUID = 1L;
}
